// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastclick from 'fastclick'
import store from './store'
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import 'common/stylus/index.styl'

Vue.use(iView)
// 解决点击延迟
fastclick.attach(document.body);


Vue.config.productionTip = false
/* eslint-disable no-new */
//正式版本请将注释取消，用于检测Cordova插件是否加载完成
// document.addEventListener('deviceready', () => {
  new Vue({
    el: '#app',
    router,
    store,
    components: {
      App
    },
    template: '<App/>'
  })
// }, false)
